package com.gjm.demo.controller;

import com.gjm.demo.aspect.MyAspect;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/myAspect1")
public class MyAspectController1 {

    @MyAspect
    @RequestMapping("/test1")
    public void test1() {
        log.info("运行 test1");
        int a = 0;
        for (int i = 0; i < 100000; i++) {
            a++;
        }
    }
}
